package com;

import com.opensymphony.xwork2.ActionSupport;

public class Login extends ActionSupport {
	private static final long serialVersionUID = 1L;
	
	private String username;
	private String password;
	
	public void setUsername(String username){
		this.username = username;
	}
	
	public String getUsername(){
		return this.username;
	}
	
	public void setPassword(String Password){
		this.password = Password;
	}
	
	public String getPassword(){
		return this.password;
	}
	
	public String login(){
		System.out.println("login() is called!");
		System.out.println(password);
		if(username.equals("zjut"))
			return "success";
		return "failed";
	}
}
